import 'package:flutter/material.dart';

class Edit extends StatefulWidget {
  const Edit({Key? key}) : super(key: key);

  @override
  State<Edit> createState() => _EditState();
}

class _EditState extends State<Edit> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('发布动态',style: TextStyle(fontSize: 12),),
          leading: IconButton(onPressed: () {
            //页面返回
            Navigator.pop(context);
          },
            icon: Icon(Icons.keyboard_arrow_left_rounded),

          )
      ),
      body: Container(
        child: Column(
          children: [
         //内容输入框
            Container(
              margin: EdgeInsets.only(
                  right: 4,
                  left: 4,
                  top: 10
              ),
              child: TextField(
                keyboardType: TextInputType.text,
                maxLength: 800,
                maxLines: 10,
                decoration: InputDecoration(
                    hintText: '输入内容',
                    fillColor: Colors.black12,
                    filled: true,
                    enabledBorder: OutlineInputBorder(
                      borderSide: BorderSide(color: Colors.white),
                      borderRadius: BorderRadius.all(Radius.circular(4)),
                    ),
                    focusedBorder: OutlineInputBorder(
                      borderSide: BorderSide(color: Colors.white),
                      borderRadius: BorderRadius.all(Radius.circular(4)),
                    )

                ),

              ),
            ),
            Container(
              margin: EdgeInsets.only(
                top: 8,
                left: 8
              ),
              child: Row(
                children: [
                  Container(
                    child: Column(
                      children: [
                        Container(
                          child: Text('添加图片'),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    margin: EdgeInsets.only(
                      left: 5
                    ),
                    child: Column(
                      children: [
                        Container(
                          child: Text('添加图片'),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    margin: EdgeInsets.only(
                      left: 5
                    ),
                    child: Column(
                      children: [
                        Container(
                          child: Text('添加图片'),
                        ),
                      ],
                    ),
                  ),
                  // Column(
                  //   children: [
                  //     Container(
                  //
                  //       child: Text('添加图片'),
                  //     ),
                  //   ],
                  // ),
                  // Column(
                  //   children: [
                  //     Container(
                  //
                  //
                  //       child: Text('添加图片'),
                  //     ),
                  //   ],
                  // )
                ],
              ),
            )
          ],
        ),
      ),

    );
  }
}
